﻿<?xml version="1.0" encoding="utf-8"?>
<rules>
  <rule>
    <match field="Description">(?i:Cheque N\. (\d+)\d{1})</match>
    <then>
      <change-statement-line field="CheckNumber">$1</change-statement-line>
      <change-statement-line field="Description">Cheque</change-statement-line>
    </then>
  </rule>
  <rule>
    <match field="Description">(?i:Levantamento Mb Cartao(.*)$)</match>
    <then>
      <change-statement-line field="Description">Lev MB$1</change-statement-line>
    </then>
  </rule>
  <rule>
    <match field="Description">(?i:Transferencia Conta Servico De(.*)$)</match>
    <then>
      <change-statement-line field="Description">Trf Serviço de$1</change-statement-line>
    </then>
  </rule>
  <rule>
    <match field="Description">(?i:Transferencia Conta Servico Para(.*)$)</match>
    <then>
      <change-statement-line field="Description">Trf Serviço para$1</change-statement-line>
    </then>
  </rule>
  <rule>
    <match field="Description">(?i:TRANSFERENCIA INTERBANCARIA DE A C PROC INDUSTRIAIS,LDA$)</match>
    <then>
      <change-statement-line field="Description">Trf Interbancária de Antares</change-statement-line>
    </then>
  </rule>
  <rule>
    <match field="Description">(?i:Transferencia Interbancaria de(.*)$)</match>
    <then>
      <change-statement-line field="Description">Trf Interbancária de$1</change-statement-line>
    </then>
  </rule>
  <rule>
    <match field="Description">(?i:Pagamento Baixo Valor Cartao(.*)$)</match>
    <then>
      <change-statement-line field="Description">POS Cartão$1</change-statement-line>
    </then>
  </rule>
  <rule>
    <match field="Description">(?i:CARREG TMN BESnet \d+ (\d+))</match>
    <then>
      <change-statement-line field="Description">Carregamento TMN $1</change-statement-line>
    </then>
  </rule>
  <rule>
    <match field="Description">(?i:Pag. Prestacao Crd Individual N\. (\d+) \d+)</match>
    <then>
      <change-statement-line field="Description">Prestação CI N. $1</change-statement-line>
    </then>
  </rule>
  <rule>
    <match field="Description">(?i:Pagamento Prestacao Ch N. \d+ Processo (\d+))</match>
    <then>
      <change-statement-line field="Description">Prestação CH Processo $1</change-statement-line>
    </then>
  </rule>
  <rule>
    <match field="Description">(?i:Pagamento De Conta Credito (\d+))</match>
    <then>
      <change-statement-line field="Description">Pgt De Conta Credito $1</change-statement-line>
    </then>
  </rule>
  <rule>
    <match field="Description">(?i:Compra Visa \*{4} \*{4} (.*)$)</match>
    <then>
      <change-statement-line field="Description">Visa $1</change-statement-line>
    </then>
  </rule>

  <rule>
    <match field="Description">(?i:\bGESTAO DE CONTA BES 360\b)</match>
    <then>
      <change-statement-line field="TransactionType">Fee</change-statement-line>
      <change-statement-line field="SIC">6051</change-statement-line>
    </then>
  </rule>
  <rule>
    <match field="Description">(?i:\bCOM SERVICO\b)</match>
    <then>
      <change-statement-line field="TransactionType">ServiceCharge</change-statement-line>
      <change-statement-line field="SIC">6051</change-statement-line>
    </then>
  </rule>

  <!--SIC 4812-->
  <rule>
    <match field="Description">(?i:\bTMN\b)</match>
    <then>
      <change-statement-line field="SIC">4812</change-statement-line>
    </then>
  </rule>

  <!--SIC 4841-->
  <rule>
    <match field="Description">(?i:\bCABOVISAO\b)</match>
    <then>
      <change-statement-line field="SIC">4841</change-statement-line>
    </then>
  </rule>

  <!--SIC 4922-->
  <rule>
    <match field="Description">(?i:\bLUSITANIAGAS\b)</match>
    <then>
      <change-statement-line field="SIC">4922</change-statement-line>
    </then>
  </rule>
</rules>